import { createApp } from 'vue'
import App from '@/App.vue'
// 引入element-plus插件与样式
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import pinia from './store/index'
//@ts-ignore
import zhCn from 'element-plus/dist/locale/zh-cn.mjs'
//获取应用实例对象
import router from './router'
const app = createApp(App)
app.use(ElementPlus,{
    locale:zhCn
})
// svg插件需要配置代码
import 'virtual:svg-icons-register'
import './permisstion'
// 引入自定义插件对象：注册全局组件
import globalComponent from '@/components/index.ts'
// 安装自定义插件
app.use(globalComponent)
app.use(router)
app.use(pinia)
import '@/styles/index.scss'
app.mount('#app')
